package com.service.impl;

import com.mapper.UserMapper;
import com.pojo.User;
import com.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by
 *
 * @author touni
 * @date 2019/4/11
 * @time 18:24
 */
@Service
public class UserServiceImpl implements IUserService {


    @Autowired
    private UserMapper userMapper;


    @Override
    public User queryByuserId(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
